package ExamLab.Test2;

public class Generic{

    Integer x;

    Generic(int x){
         this.x=x;
    }

    public static void main(String args[]){	
         Generic gr=new Generic(5);
         modifyGeneric(gr,10);
         System.out.println(gr.x);
    }

    public static void modifyGeneric(Generic gr, int value){
         value++;
         gr=new Generic(value);
    }

}